package com.salesystem.dao.entity;

import java.util.HashSet;
import java.util.Set;

/**
 * Orders entity. @author MyEclipse Persistence Tools
 */

public class Orders implements java.io.Serializable {

	// Fields

	private Integer id;
	private Customer customer;
	private Employee employee;
	private Double totalprice;
	private Integer states;
	private String payment;
	private String delivery;
	private String address;
	private Set ordersinfos = new HashSet(0);

	// Constructors

	/** default constructor */
	public Orders() {
	}

	/** minimal constructor */
	public Orders(Customer customer, Employee employee, Double totalprice,
			Integer states, String payment, String delivery, String address) {
		this.customer = customer;
		this.employee = employee;
		this.totalprice = totalprice;
		this.states = states;
		this.payment = payment;
		this.delivery = delivery;
		this.address = address;
	}

	/** full constructor */
	public Orders(Customer customer, Employee employee, Double totalprice,
			Integer states, String payment, String delivery, String address,
			Set ordersinfos) {
		this.customer = customer;
		this.employee = employee;
		this.totalprice = totalprice;
		this.states = states;
		this.payment = payment;
		this.delivery = delivery;
		this.address = address;
		this.ordersinfos = ordersinfos;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Customer getCustomer() {
		return this.customer;
	}

	public void setCustomer(Customer customer) {
		this.customer = customer;
	}

	public Employee getEmployee() {
		return this.employee;
	}

	public void setEmployee(Employee employee) {
		this.employee = employee;
	}

	public Double getTotalprice() {
		return this.totalprice;
	}

	public void setTotalprice(Double totalprice) {
		this.totalprice = totalprice;
	}

	public Integer getStates() {
		return this.states;
	}

	public void setStates(Integer states) {
		this.states = states;
	}

	public String getPayment() {
		return this.payment;
	}

	public void setPayment(String payment) {
		this.payment = payment;
	}

	public String getDelivery() {
		return this.delivery;
	}

	public void setDelivery(String delivery) {
		this.delivery = delivery;
	}

	public String getAddress() {
		return this.address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public Set getOrdersinfos() {
		return this.ordersinfos;
	}

	public void setOrdersinfos(Set ordersinfos) {
		this.ordersinfos = ordersinfos;
	}

}